package cn.liumouren.jzxd.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import cn.liumouren.jzxd.common.utils.PageUtils;
import cn.liumouren.jzxd.entity.Zone;

import java.util.List;
import java.util.Map;

/**
 * @author Freeman Liu
 * @email llw599502537@gmail.com
 * @date 2020-10-30 16:28:21
 */
public interface ZoneService extends IService<Zone> {

    PageUtils queryPage(Map<String, Object> params);

    IPage<Zone> findByUserId(String userId, int cur, int size);

    IPage<Zone> getLikedZonesByUserId(String userId, int cur, int size);

    IPage<Zone> getCommentedZonesByUserId(String userId, int cur, int size);

    void makePrivacyOrPublic(String zoneId, int state);

    List<Zone> pageQuery(int cur, int size);

    IPage<Zone> pageQueryByColumn(Map<String, Integer> map, int cur, int size);

    List<Zone> getRelatedZones(String sceneId, int cur, int size);
}

